# src CMakeLists.txt

include_directories (${otfdd_SOURCE_DIR}/src ${otfdd_BINARY_DIR}/src)

#info about executable
add_executable (otfdd otfdd.c common.c confHandler.c mysqlHandler.c cardReader.c)
SET (EXECUTABLE_OUTPUT_PATH ${otfdd_SOURCE_DIR}/bin)

#link mysql library
TARGET_LINK_LIBRARIES (otfdd ${MYSQL_LIBRARY})

#add conpilation options
ADD_DEFINITIONS (-Wall)

#info about installtion path
install (TARGETS otfdd DESTINATION bin)